# Contributor: Stuart Cardall <developer@it-offshore.co.uk>
# Maintainer: Stuart Cardall <developer@it-offshore.co.uk>
pkgname=py3-pygraphviz
pkgver=1.10
pkgrel=1
pkgdesc="Python interface to Graphviz"
options="!check" # FAILED (failures=11, errors=47)
url="https://pygraphviz.github.io/"
arch="all"
license="BSD-3-Clause"
depends="python3"
makedepends="python3-dev graphviz-dev py3-setuptools"
checkdepends="py3-nose"
subpackages="$pkgname-doc $pkgname-pyc"
source="https://github.com/pygraphviz/pygraphviz/archive/pygraphviz-$pkgver.tar.gz"
builddir="$srcdir/pygraphviz-pygraphviz-$pkgver"

replaces="py-pygraphviz" # Backwards compatibility
provides="py-pygraphviz=$pkgver-r$pkgrel" # Backwards compatibility

build() {
	python3 setup.py build
}

check() {
	python3 setup.py test
}

package() {
	python3 setup.py install --skip-build --root="$pkgdir"
}

sha512sums="
2cab46363414361f3923c82cf3226af2e1405feaaf6556dd23c33653d9a92d1767bdd7b3d73369e8a9e644a525e969ff00cd9196bba13cfebe53feb6e5d53bfa  pygraphviz-1.10.tar.gz
"
